new Vue({
    el: '#app',

    data: {
        phone: '',
        pass: ''
    },

    methods: {
        login() {
            console.log(this.phone, this.pass);
            //获取到输入的账号,密码, 发请求
            //...

            //可以随时清空输入框的值
            this.phone = '';
            this.pass = '';
        }
    }
})